package com.gcxy.domain.dto;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;

@Data
@Validated
@ApiModel(value = "用户修改用户信息DTO")
public class UpdateUserDTO {

    @ApiModelProperty(value = "用户id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "密码")
    @Length(max = 16, message = "密码长度不能超过16位")
    private String password;

    @ApiModelProperty(value = "手机号")
    @Length(max = 11, message = "手机号长度不能超过11位")
    private String phone;

    @ApiModelProperty(value = "邮箱")
    private String email;
}
